package com.youlian.utils;

import java.util.ArrayList;


import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import android.os.AsyncTask;

/**
 * @author simon
 * @proName vipshop_1.0
 * @version 1.0
 * @Data 2012-9-12 下午04:01:31
 *
   <b>异步加载项</b>
 */
public class LoadingTask extends AsyncTask {
	private LoadingInterfaceCollback collback;
	private Context mContext;
	private String cityName;
	private boolean flgs = false;
	private boolean isLogin =false;
	private String userToken;

	public LoadingTask(Context mContext,LoadingInterfaceCollback collback,String cityName,boolean isLogin,String userToken){
		this.mContext = mContext;
		this.cityName = cityName;
		this.collback = collback;
		this.isLogin = isLogin;
		this.userToken=userToken;
	}

	@Override
	protected Object doInBackground(Object... paramArrayOfParams) {
		// TODO Auto-generated method stub
		try {
		} catch (Exception e) {
			// TODO: handle exception
		}
		return flgs;
	}

	@Override
	protected void onPostExecute(Object result) {
		// TODO Auto-generated method stub
		collback.Collback((Boolean)result);
	}
	public interface LoadingInterfaceCollback{
		void Collback(boolean flgs);
	}


}
